package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.DeviceVersionDao;
import io.wdb.modules.generator.generator.entity.DeviceVersionEntity;
import io.wdb.modules.generator.generator.service.DeviceVersionService;



@Service("deviceVersionService")
public class DeviceVersionServiceImpl implements DeviceVersionService {
	@Autowired
	private DeviceVersionDao deviceVersionDao;
	
	@Override
	public DeviceVersionEntity queryObject(Long id){
		return deviceVersionDao.queryObject(id);
	}
	
	@Override
	public List<DeviceVersionEntity> queryList(Map<String, Object> map){
		return deviceVersionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return deviceVersionDao.queryTotal(map);
	}
	
	@Override
	public void save(DeviceVersionEntity deviceVersion){
		deviceVersionDao.save(deviceVersion);
	}
	
	@Override
	public void update(DeviceVersionEntity deviceVersion){
		deviceVersionDao.update(deviceVersion);
	}
	
	@Override
	public void delete(Long id){
		deviceVersionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		deviceVersionDao.deleteBatch(ids);
	}
	
}
